package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_l_ck_patrons_upgrade", desc = "门客升级", autoSave = true, uploadCk = true)
public class LogPatronsUpgrade extends ServerBaseLog {
    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "门客id")
    private int patronsId;
    @FieldTypeAnnotation(desc = "旧等级")
    private int oldLv;
    @FieldTypeAnnotation(desc = "新等级")
    private int level;
    @FieldTypeAnnotation(desc = "消耗")
    private String consume;

    public LogPatronsUpgrade(long userId, int patronsId, int oldLv, int level, String consume) {
        this.userId = userId;
        this.patronsId = patronsId;
        this.oldLv = oldLv;
        this.level = level;
        this.consume = consume;
    }

    public long getUserId() {
        return userId;
    }
}
